﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;

namespace QzEbook.ReWrite
{
    /// <summary>
    /// 用于删除无用缩进的HtmeTextWriter对像;
    /// </summary>
    public class FilterHtmlTextWriter:HtmlTextWriter
    {
        public FilterHtmlTextWriter(TextWriter write,string tab):base(write,tab)
        {
        }

        /// <summary>
        /// 总是让缩进为0;
        /// </summary>
        public new int Indent
        {
            get
            {
                return 0;
            }
            set
            {
                base.Indent = 0;
            }
        }
    }
}